package com.rxyb.sms.service.factory.bami;

import com.rxyb.sms.service.factory.SmsManagement;
import com.rxyb.sms.utils.SmsRspData;
import com.rxyb.sms.utils.bami.BamiClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 发送短信
 *
 * @author duyh
 **/
@Service
public class BamiManagement implements SmsManagement {

    @Autowired
    private BamiClient bamiClient;

    @Override
    public SmsRspData send(String mobile, String message) {
        return bamiClient.send(mobile, message);
    }
}
